﻿
@{
    ViewData["Title"] = "Select";
}

<h1>Select</h1>

@using Demo_自定义标签.Controllers

@model CountryViewModel


<select class="form-control" asp-for="Country" asp-items="Model.Countries"></select>

<br />
<br />
<br />
<br />

<select class="form-control" asp-for="Country" asp-items="@(new SelectList(Model.Countries,"Value","Text"))"></select>



<br />
<br />
<br />
<br />

<select class="form-control" asp-for="Language" asp-items="@Html.GetEnumSelectList(typeof(Language))"></select>